package com.navi.loaddata.core.oracleEntity.spc;


        import javax.persistence.*;
        import java.sql.Timestamp;

/**
 * Created by ghost on 2018/6/13.
 */
@Entity
@Table(name = "controldata_m_oc_pipr", schema = "sor", catalog = "qmsprd")
@IdClass(ControlDataPK.class)
public class ControlData {
    private String chartid;
    private String charttype;
    private String factoryname;
    private String subfactoryname;
    private String controldataseq;
    private String dcdataid;
    private Timestamp dbTimestampQms;
    private Timestamp dbTimestampSrc;
    private String glassId;
    private Timestamp eventtime;
    private Timestamp eventtimePre;
    private String itemname;
    private String productspecname;
    private String eccode;
    private String processoperationname;
    private String machinename;
    private String unitname;
    private String recipename;
    private String procprocessoperationname;
    private String procmachinename;
    private String procunitname;
    private String procrecipename;
    private String runmode;
    private String ownercode;
    private String rtc;
    private String qtap;
    private Double uspec;
    private Double target;
    private Double lspec;
    private Double ucl1;
    private Double cl1;
    private Double lcl1;
    private Double ucl2;
    private Double cl2;
    private Double lcl2;
    private Double ucl3;
    private Double cl3;
    private Double lcl3;
    private Double dXbar;
    private Double dSdev;
    private Double dRng;
    private Double dUnf1;
    private Double dUnf2;
    private Double dMax;
    private Double dMin;
    private Double dX;
    private Double dRm;
    private Double dNp;
    private Double dP;
    private Double dC;
    private Double dU;
    private String delMark;
    private String oos;
    private String ooc1;
    private String ooc2;
    private String ooc3;
    private String oor1;
    private String oor2;
    private String oor3;
    private Integer sitecount;
    private String rawdatas;

    @Id
    @Column(name = "chartid")
    public String getChartid() {
        return chartid;
    }

    public void setChartid(String chartid) {
        this.chartid = chartid;
    }

    @Basic
    @Column(name = "charttype")
    public String getCharttype() {
        return charttype;
    }

    public void setCharttype(String charttype) {
        this.charttype = charttype;
    }

    @Basic
    @Column(name = "factoryname")
    public String getFactoryname() {
        return factoryname;
    }

    public void setFactoryname(String factoryname) {
        this.factoryname = factoryname;
    }

    @Basic
    @Column(name = "subfactoryname")
    public String getSubfactoryname() {
        return subfactoryname;
    }

    public void setSubfactoryname(String subfactoryname) {
        this.subfactoryname = subfactoryname;
    }

    @Id
    @Column(name = "controldataseq")
    public String getControldataseq() {
        return controldataseq;
    }

    public void setControldataseq(String controldataseq) {
        this.controldataseq = controldataseq;
    }

    @Basic
    @Column(name = "dcdataid")
    public String getDcdataid() {
        return dcdataid;
    }

    public void setDcdataid(String dcdataid) {
        this.dcdataid = dcdataid;
    }

    @Basic
    @Column(name = "db_timestamp_qms")
    public Timestamp getDbTimestampQms() {
        return dbTimestampQms;
    }

    public void setDbTimestampQms(Timestamp dbTimestampQms) {
        this.dbTimestampQms = dbTimestampQms;
    }

    @Basic
    @Column(name = "db_timestamp_src")
    public Timestamp getDbTimestampSrc() {
        return dbTimestampSrc;
    }

    public void setDbTimestampSrc(Timestamp dbTimestampSrc) {
        this.dbTimestampSrc = dbTimestampSrc;
    }

    @Basic
    @Column(name = "glass_id")
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Basic
    @Column(name = "eventtime")
    public Timestamp getEventtime() {
        return eventtime;
    }

    public void setEventtime(Timestamp eventtime) {
        this.eventtime = eventtime;
    }

    @Id
    @Column(name = "eventtime_pre")
    public Timestamp getEventtimePre() {
        return eventtimePre;
    }

    public void setEventtimePre(Timestamp eventtimePre) {
        this.eventtimePre = eventtimePre;
    }

    @Basic
    @Column(name = "itemname")
    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    @Basic
    @Column(name = "productspecname")
    public String getProductspecname() {
        return productspecname;
    }

    public void setProductspecname(String productspecname) {
        this.productspecname = productspecname;
    }

    @Basic
    @Column(name = "eccode")
    public String getEccode() {
        return eccode;
    }

    public void setEccode(String eccode) {
        this.eccode = eccode;
    }

    @Basic
    @Column(name = "processoperationname")
    public String getProcessoperationname() {
        return processoperationname;
    }

    public void setProcessoperationname(String processoperationname) {
        this.processoperationname = processoperationname;
    }

    @Basic
    @Column(name = "machinename")
    public String getMachinename() {
        return machinename;
    }

    public void setMachinename(String machinename) {
        this.machinename = machinename;
    }

    @Basic
    @Column(name = "unitname")
    public String getUnitname() {
        return unitname;
    }

    public void setUnitname(String unitname) {
        this.unitname = unitname;
    }

    @Basic
    @Column(name = "recipename")
    public String getRecipename() {
        return recipename;
    }

    public void setRecipename(String recipename) {
        this.recipename = recipename;
    }

    @Basic
    @Column(name = "procprocessoperationname")
    public String getProcprocessoperationname() {
        return procprocessoperationname;
    }

    public void setProcprocessoperationname(String procprocessoperationname) {
        this.procprocessoperationname = procprocessoperationname;
    }

    @Basic
    @Column(name = "procmachinename")
    public String getProcmachinename() {
        return procmachinename;
    }

    public void setProcmachinename(String procmachinename) {
        this.procmachinename = procmachinename;
    }

    @Basic
    @Column(name = "procunitname")
    public String getProcunitname() {
        return procunitname;
    }

    public void setProcunitname(String procunitname) {
        this.procunitname = procunitname;
    }

    @Basic
    @Column(name = "procrecipename")
    public String getProcrecipename() {
        return procrecipename;
    }

    public void setProcrecipename(String procrecipename) {
        this.procrecipename = procrecipename;
    }

    @Basic
    @Column(name = "runmode")
    public String getRunmode() {
        return runmode;
    }

    public void setRunmode(String runmode) {
        this.runmode = runmode;
    }

    @Basic
    @Column(name = "ownercode")
    public String getOwnercode() {
        return ownercode;
    }

    public void setOwnercode(String ownercode) {
        this.ownercode = ownercode;
    }

    @Basic
    @Column(name = "rtc")
    public String getRtc() {
        return rtc;
    }

    public void setRtc(String rtc) {
        this.rtc = rtc;
    }

    @Basic
    @Column(name = "qtap")
    public String getQtap() {
        return qtap;
    }

    public void setQtap(String qtap) {
        this.qtap = qtap;
    }

    @Basic
    @Column(name = "uspec")
    public Double getUspec() {
        return uspec;
    }

    public void setUspec(Double uspec) {
        this.uspec = uspec;
    }

    @Basic
    @Column(name = "target")
    public Double getTarget() {
        return target;
    }

    public void setTarget(Double target) {
        this.target = target;
    }

    @Basic
    @Column(name = "lspec")
    public Double getLspec() {
        return lspec;
    }

    public void setLspec(Double lspec) {
        this.lspec = lspec;
    }

    @Basic
    @Column(name = "ucl1")
    public Double getUcl1() {
        return ucl1;
    }

    public void setUcl1(Double ucl1) {
        this.ucl1 = ucl1;
    }

    @Basic
    @Column(name = "cl1")
    public Double getCl1() {
        return cl1;
    }

    public void setCl1(Double cl1) {
        this.cl1 = cl1;
    }

    @Basic
    @Column(name = "lcl1")
    public Double getLcl1() {
        return lcl1;
    }

    public void setLcl1(Double lcl1) {
        this.lcl1 = lcl1;
    }

    @Basic
    @Column(name = "ucl2")
    public Double getUcl2() {
        return ucl2;
    }

    public void setUcl2(Double ucl2) {
        this.ucl2 = ucl2;
    }

    @Basic
    @Column(name = "cl2")
    public Double getCl2() {
        return cl2;
    }

    public void setCl2(Double cl2) {
        this.cl2 = cl2;
    }

    @Basic
    @Column(name = "lcl2")
    public Double getLcl2() {
        return lcl2;
    }

    public void setLcl2(Double lcl2) {
        this.lcl2 = lcl2;
    }

    @Basic
    @Column(name = "ucl3")
    public Double getUcl3() {
        return ucl3;
    }

    public void setUcl3(Double ucl3) {
        this.ucl3 = ucl3;
    }

    @Basic
    @Column(name = "cl3")
    public Double getCl3() {
        return cl3;
    }

    public void setCl3(Double cl3) {
        this.cl3 = cl3;
    }

    @Basic
    @Column(name = "lcl3")
    public Double getLcl3() {
        return lcl3;
    }

    public void setLcl3(Double lcl3) {
        this.lcl3 = lcl3;
    }

    @Basic
    @Column(name = "d_xbar")
    public Double getdXbar() {
        return dXbar;
    }

    public void setdXbar(Double dXbar) {
        this.dXbar = dXbar;
    }

    @Basic
    @Column(name = "d_sdev")
    public Double getdSdev() {
        return dSdev;
    }

    public void setdSdev(Double dSdev) {
        this.dSdev = dSdev;
    }

    @Basic
    @Column(name = "d_rng")
    public Double getdRng() {
        return dRng;
    }

    public void setdRng(Double dRng) {
        this.dRng = dRng;
    }

    @Basic
    @Column(name = "d_unf1")
    public Double getdUnf1() {
        return dUnf1;
    }

    public void setdUnf1(Double dUnf1) {
        this.dUnf1 = dUnf1;
    }

    @Basic
    @Column(name = "d_unf2")
    public Double getdUnf2() {
        return dUnf2;
    }

    public void setdUnf2(Double dUnf2) {
        this.dUnf2 = dUnf2;
    }

    @Basic
    @Column(name = "d_max")
    public Double getdMax() {
        return dMax;
    }

    public void setdMax(Double dMax) {
        this.dMax = dMax;
    }

    @Basic
    @Column(name = "d_min")
    public Double getdMin() {
        return dMin;
    }

    public void setdMin(Double dMin) {
        this.dMin = dMin;
    }

    @Basic
    @Column(name = "d_x")
    public Double getdX() {
        return dX;
    }

    public void setdX(Double dX) {
        this.dX = dX;
    }

    @Basic
    @Column(name = "d_rm")
    public Double getdRm() {
        return dRm;
    }

    public void setdRm(Double dRm) {
        this.dRm = dRm;
    }

    @Basic
    @Column(name = "d_np")
    public Double getdNp() {
        return dNp;
    }

    public void setdNp(Double dNp) {
        this.dNp = dNp;
    }

    @Basic
    @Column(name = "d_p")
    public Double getdP() {
        return dP;
    }

    public void setdP(Double dP) {
        this.dP = dP;
    }

    @Basic
    @Column(name = "d_c")
    public Double getdC() {
        return dC;
    }

    public void setdC(Double dC) {
        this.dC = dC;
    }

    @Basic
    @Column(name = "d_u")
    public Double getdU() {
        return dU;
    }

    public void setdU(Double dU) {
        this.dU = dU;
    }

    @Basic
    @Column(name = "del_mark")
    public String getDelMark() {
        return delMark;
    }

    public void setDelMark(String delMark) {
        this.delMark = delMark;
    }

    @Basic
    @Column(name = "oos")
    public String getOos() {
        return oos;
    }

    public void setOos(String oos) {
        this.oos = oos;
    }

    @Basic
    @Column(name = "ooc1")
    public String getOoc1() {
        return ooc1;
    }

    public void setOoc1(String ooc1) {
        this.ooc1 = ooc1;
    }

    @Basic
    @Column(name = "ooc2")
    public String getOoc2() {
        return ooc2;
    }

    public void setOoc2(String ooc2) {
        this.ooc2 = ooc2;
    }

    @Basic
    @Column(name = "ooc3")
    public String getOoc3() {
        return ooc3;
    }

    public void setOoc3(String ooc3) {
        this.ooc3 = ooc3;
    }

    @Basic
    @Column(name = "oor1")
    public String getOor1() {
        return oor1;
    }

    public void setOor1(String oor1) {
        this.oor1 = oor1;
    }

    @Basic
    @Column(name = "oor2")
    public String getOor2() {
        return oor2;
    }

    public void setOor2(String oor2) {
        this.oor2 = oor2;
    }

    @Basic
    @Column(name = "oor3")
    public String getOor3() {
        return oor3;
    }

    public void setOor3(String oor3) {
        this.oor3 = oor3;
    }

    @Basic
    @Column(name = "sitecount")
    public Integer getSitecount() {
        return sitecount;
    }

    public void setSitecount(Integer sitecount) {
        this.sitecount = sitecount;
    }

    @Basic
    @Column(name = "rawdatas")
    public String getRawdatas() {
        return rawdatas;
    }

    public void setRawdatas(String rawdatas) {
        this.rawdatas = rawdatas;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ControlData that = (ControlData) o;

        if (chartid != null ? !chartid.equals(that.chartid) : that.chartid != null) return false;
        if (charttype != null ? !charttype.equals(that.charttype) : that.charttype != null) return false;
        if (factoryname != null ? !factoryname.equals(that.factoryname) : that.factoryname != null) return false;
        if (subfactoryname != null ? !subfactoryname.equals(that.subfactoryname) : that.subfactoryname != null)
            return false;
        if (controldataseq != null ? !controldataseq.equals(that.controldataseq) : that.controldataseq != null)
            return false;
        if (dcdataid != null ? !dcdataid.equals(that.dcdataid) : that.dcdataid != null) return false;
        if (dbTimestampQms != null ? !dbTimestampQms.equals(that.dbTimestampQms) : that.dbTimestampQms != null)
            return false;
        if (dbTimestampSrc != null ? !dbTimestampSrc.equals(that.dbTimestampSrc) : that.dbTimestampSrc != null)
            return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (eventtime != null ? !eventtime.equals(that.eventtime) : that.eventtime != null) return false;
        if (eventtimePre != null ? !eventtimePre.equals(that.eventtimePre) : that.eventtimePre != null) return false;
        if (itemname != null ? !itemname.equals(that.itemname) : that.itemname != null) return false;
        if (productspecname != null ? !productspecname.equals(that.productspecname) : that.productspecname != null)
            return false;
        if (eccode != null ? !eccode.equals(that.eccode) : that.eccode != null) return false;
        if (processoperationname != null ? !processoperationname.equals(that.processoperationname) : that.processoperationname != null)
            return false;
        if (machinename != null ? !machinename.equals(that.machinename) : that.machinename != null) return false;
        if (unitname != null ? !unitname.equals(that.unitname) : that.unitname != null) return false;
        if (recipename != null ? !recipename.equals(that.recipename) : that.recipename != null) return false;
        if (procprocessoperationname != null ? !procprocessoperationname.equals(that.procprocessoperationname) : that.procprocessoperationname != null)
            return false;
        if (procmachinename != null ? !procmachinename.equals(that.procmachinename) : that.procmachinename != null)
            return false;
        if (procunitname != null ? !procunitname.equals(that.procunitname) : that.procunitname != null) return false;
        if (procrecipename != null ? !procrecipename.equals(that.procrecipename) : that.procrecipename != null)
            return false;
        if (runmode != null ? !runmode.equals(that.runmode) : that.runmode != null) return false;
        if (ownercode != null ? !ownercode.equals(that.ownercode) : that.ownercode != null) return false;
        if (rtc != null ? !rtc.equals(that.rtc) : that.rtc != null) return false;
        if (qtap != null ? !qtap.equals(that.qtap) : that.qtap != null) return false;
        if (uspec != null ? !uspec.equals(that.uspec) : that.uspec != null) return false;
        if (target != null ? !target.equals(that.target) : that.target != null) return false;
        if (lspec != null ? !lspec.equals(that.lspec) : that.lspec != null) return false;
        if (ucl1 != null ? !ucl1.equals(that.ucl1) : that.ucl1 != null) return false;
        if (cl1 != null ? !cl1.equals(that.cl1) : that.cl1 != null) return false;
        if (lcl1 != null ? !lcl1.equals(that.lcl1) : that.lcl1 != null) return false;
        if (ucl2 != null ? !ucl2.equals(that.ucl2) : that.ucl2 != null) return false;
        if (cl2 != null ? !cl2.equals(that.cl2) : that.cl2 != null) return false;
        if (lcl2 != null ? !lcl2.equals(that.lcl2) : that.lcl2 != null) return false;
        if (ucl3 != null ? !ucl3.equals(that.ucl3) : that.ucl3 != null) return false;
        if (cl3 != null ? !cl3.equals(that.cl3) : that.cl3 != null) return false;
        if (lcl3 != null ? !lcl3.equals(that.lcl3) : that.lcl3 != null) return false;
        if (dXbar != null ? !dXbar.equals(that.dXbar) : that.dXbar != null) return false;
        if (dSdev != null ? !dSdev.equals(that.dSdev) : that.dSdev != null) return false;
        if (dRng != null ? !dRng.equals(that.dRng) : that.dRng != null) return false;
        if (dUnf1 != null ? !dUnf1.equals(that.dUnf1) : that.dUnf1 != null) return false;
        if (dUnf2 != null ? !dUnf2.equals(that.dUnf2) : that.dUnf2 != null) return false;
        if (dMax != null ? !dMax.equals(that.dMax) : that.dMax != null) return false;
        if (dMin != null ? !dMin.equals(that.dMin) : that.dMin != null) return false;
        if (dX != null ? !dX.equals(that.dX) : that.dX != null) return false;
        if (dRm != null ? !dRm.equals(that.dRm) : that.dRm != null) return false;
        if (dNp != null ? !dNp.equals(that.dNp) : that.dNp != null) return false;
        if (dP != null ? !dP.equals(that.dP) : that.dP != null) return false;
        if (dC != null ? !dC.equals(that.dC) : that.dC != null) return false;
        if (dU != null ? !dU.equals(that.dU) : that.dU != null) return false;
        if (delMark != null ? !delMark.equals(that.delMark) : that.delMark != null) return false;
        if (oos != null ? !oos.equals(that.oos) : that.oos != null) return false;
        if (ooc1 != null ? !ooc1.equals(that.ooc1) : that.ooc1 != null) return false;
        if (ooc2 != null ? !ooc2.equals(that.ooc2) : that.ooc2 != null) return false;
        if (ooc3 != null ? !ooc3.equals(that.ooc3) : that.ooc3 != null) return false;
        if (oor1 != null ? !oor1.equals(that.oor1) : that.oor1 != null) return false;
        if (oor2 != null ? !oor2.equals(that.oor2) : that.oor2 != null) return false;
        if (oor3 != null ? !oor3.equals(that.oor3) : that.oor3 != null) return false;
        if (sitecount != null ? !sitecount.equals(that.sitecount) : that.sitecount != null) return false;
        if (rawdatas != null ? !rawdatas.equals(that.rawdatas) : that.rawdatas != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = chartid != null ? chartid.hashCode() : 0;
        result = 31 * result + (charttype != null ? charttype.hashCode() : 0);
        result = 31 * result + (factoryname != null ? factoryname.hashCode() : 0);
        result = 31 * result + (subfactoryname != null ? subfactoryname.hashCode() : 0);
        result = 31 * result + (controldataseq != null ? controldataseq.hashCode() : 0);
        result = 31 * result + (dcdataid != null ? dcdataid.hashCode() : 0);
        result = 31 * result + (dbTimestampQms != null ? dbTimestampQms.hashCode() : 0);
        result = 31 * result + (dbTimestampSrc != null ? dbTimestampSrc.hashCode() : 0);
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (eventtime != null ? eventtime.hashCode() : 0);
        result = 31 * result + (eventtimePre != null ? eventtimePre.hashCode() : 0);
        result = 31 * result + (itemname != null ? itemname.hashCode() : 0);
        result = 31 * result + (productspecname != null ? productspecname.hashCode() : 0);
        result = 31 * result + (eccode != null ? eccode.hashCode() : 0);
        result = 31 * result + (processoperationname != null ? processoperationname.hashCode() : 0);
        result = 31 * result + (machinename != null ? machinename.hashCode() : 0);
        result = 31 * result + (unitname != null ? unitname.hashCode() : 0);
        result = 31 * result + (recipename != null ? recipename.hashCode() : 0);
        result = 31 * result + (procprocessoperationname != null ? procprocessoperationname.hashCode() : 0);
        result = 31 * result + (procmachinename != null ? procmachinename.hashCode() : 0);
        result = 31 * result + (procunitname != null ? procunitname.hashCode() : 0);
        result = 31 * result + (procrecipename != null ? procrecipename.hashCode() : 0);
        result = 31 * result + (runmode != null ? runmode.hashCode() : 0);
        result = 31 * result + (ownercode != null ? ownercode.hashCode() : 0);
        result = 31 * result + (rtc != null ? rtc.hashCode() : 0);
        result = 31 * result + (qtap != null ? qtap.hashCode() : 0);
        result = 31 * result + (uspec != null ? uspec.hashCode() : 0);
        result = 31 * result + (target != null ? target.hashCode() : 0);
        result = 31 * result + (lspec != null ? lspec.hashCode() : 0);
        result = 31 * result + (ucl1 != null ? ucl1.hashCode() : 0);
        result = 31 * result + (cl1 != null ? cl1.hashCode() : 0);
        result = 31 * result + (lcl1 != null ? lcl1.hashCode() : 0);
        result = 31 * result + (ucl2 != null ? ucl2.hashCode() : 0);
        result = 31 * result + (cl2 != null ? cl2.hashCode() : 0);
        result = 31 * result + (lcl2 != null ? lcl2.hashCode() : 0);
        result = 31 * result + (ucl3 != null ? ucl3.hashCode() : 0);
        result = 31 * result + (cl3 != null ? cl3.hashCode() : 0);
        result = 31 * result + (lcl3 != null ? lcl3.hashCode() : 0);
        result = 31 * result + (dXbar != null ? dXbar.hashCode() : 0);
        result = 31 * result + (dSdev != null ? dSdev.hashCode() : 0);
        result = 31 * result + (dRng != null ? dRng.hashCode() : 0);
        result = 31 * result + (dUnf1 != null ? dUnf1.hashCode() : 0);
        result = 31 * result + (dUnf2 != null ? dUnf2.hashCode() : 0);
        result = 31 * result + (dMax != null ? dMax.hashCode() : 0);
        result = 31 * result + (dMin != null ? dMin.hashCode() : 0);
        result = 31 * result + (dX != null ? dX.hashCode() : 0);
        result = 31 * result + (dRm != null ? dRm.hashCode() : 0);
        result = 31 * result + (dNp != null ? dNp.hashCode() : 0);
        result = 31 * result + (dP != null ? dP.hashCode() : 0);
        result = 31 * result + (dC != null ? dC.hashCode() : 0);
        result = 31 * result + (dU != null ? dU.hashCode() : 0);
        result = 31 * result + (delMark != null ? delMark.hashCode() : 0);
        result = 31 * result + (oos != null ? oos.hashCode() : 0);
        result = 31 * result + (ooc1 != null ? ooc1.hashCode() : 0);
        result = 31 * result + (ooc2 != null ? ooc2.hashCode() : 0);
        result = 31 * result + (ooc3 != null ? ooc3.hashCode() : 0);
        result = 31 * result + (oor1 != null ? oor1.hashCode() : 0);
        result = 31 * result + (oor2 != null ? oor2.hashCode() : 0);
        result = 31 * result + (oor3 != null ? oor3.hashCode() : 0);
        result = 31 * result + (sitecount != null ? sitecount.hashCode() : 0);
        result = 31 * result + (rawdatas != null ? rawdatas.hashCode() : 0);
        return result;
    }

}
